var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock({
    "code": 0,
    "msg": "OK",
    "data": {
      "data": [
        {
          "id":'port',
          "name":'股票多头1',
          "quarterProfit":"@float(-1, 1, 4,4)",// 季度收益
          "yearProfit11":"@float(-1, 1, 4,4)",// 年收益
          "totalProfit":"@float(-1, 1, 4,4)",// 累计收益
          "annualProfit":"@float(-1, 1, 4,4)",// 年化收益
          "annualVolatility":"@float(-1, 1, 4,4)",// 年化波动率
          "maximumRetracement":"@float(-1, 1, 4,4)",// 最大回撤
        },
        {
          "id":'bench',
          "name":'沪深300',
          "quarterProfit":"@float(-1, 1, 4,4)",// 季度收益
          "yearProfit11":"@float(-1, 1, 4,4)",// 年收益
          "totalProfit":"@float(-1, 1, 4,4)",// 累计收益
          "annualProfit":"@float(-1, 1, 4,4)",// 年化收益
          "annualVolatility":"@float(-1, 1, 4,4)",// 年化波动率
          "maximumRetracement":"@float(-1, 1, 4,4)",// 最大回撤
        }
      ],
      "fieldList":[
        {
          "id": 'quarterProfit',
          "name": '近1季度收益111',
        }, {
          "id": 'yearProfit11',
          "name": '近1年收益',
        }, {
          "id": 'totalProfit',
          "name": '成立以来累计收益',
        }, {
          "id": 'annualProfit',
          "name": '成立以来年化收益',
        }, {
          "id": 'annualVolatility',
          "name": '成立以来年化波动率',
        }, {
          "id": 'maximumRetracement',
          "name": '成立以来最大回撤',
        }
      ]
    }
  })
}
